package cs.cpsc372.Uorganized;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	
	private Button vs_button;
	private Button ae_button;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        vs_button = (Button) findViewById(R.id.vs_button);
        vs_button.setOnClickListener(vsListener);
        ae_button = (Button) findViewById(R.id.ae_button);
        ae_button.setOnClickListener(aeListener);
       }
        
    OnClickListener vsListener = new OnClickListener() {
        public void onClick(View v) {
        	System.out.println("click");
        	Intent myIntent = new Intent(MainActivity.this, WeekView.class);
            //MainActivity.this.startActivity(myIntent);
            startActivity(myIntent);
            System.out.println("I Got Here");
        }
    }; 
    
    OnClickListener aeListener = new OnClickListener() {
        public void onClick(View v) {
        	System.out.println("click");
        	Intent aeIntent = new Intent(MainActivity.this, AddEventView.class);
            //MainActivity.this.startActivity(aeIntent);
            startActivity(aeIntent);
            System.out.println("I Got Here");
        }
    }; 
    

    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
